package com.tepth.vehiclemaintenance.mvp.work.history;

import com.tepth.vehiclemaintenance.base.BaseModel;
import com.tepth.vehiclemaintenance.base.BasePresenter;
import com.tepth.vehiclemaintenance.base.BaseView;
import com.tepth.vehiclemaintenance.bean.VehicleMaintain;
import com.tepth.vehiclemaintenance.net.ApiModel;

import java.util.ArrayList;

import io.reactivex.Observable;

/**
 * Created by zhangyu on 2017/5/11.
 */

public class HistoryContract {

    interface View extends BaseView {
        String getNumber();

        String getAuthKey();

        String getStartTime();

        String getEndTime();

        void showList(ArrayList<VehicleMaintain> list);
    }

    interface Model extends BaseModel {
        Observable<ApiModel<ArrayList<VehicleMaintain>>> getVehicleHistory(String authKey,
                                                                           String startTime,
                                                                           String endTime,
                                                                           String vehicleNumber);
    }

    abstract static class Presenter extends BasePresenter<Model, View> {

        @Override
        public void onStart() {

        }

        abstract void getVehicleHistory();
    }
}